from decimal import Decimal
import decimal

def sqr(x):
    res = ''
    try:
        if isinstance(x, int):
            res = x ** 2
        elif isinstance(x, float):
            res = Decimal(x) * Decimal(x)
        elif isinstance(x, list):
            res = []
            for i in x:
                res.append(i ** 2)
        else:
            print('你小子是输入字符串或符号了吗？')
    except Exception as e:
        print('请检查参数！')
        res = ''
    return res